import { createAPI } from '@/utils/request.js'
// input框信息
export const choice = data => createAPI('/questions/choice', 'get', data)
export const simple = data => createAPI('/subjects/simple', 'get', data)
export const simpleTwo = data => createAPI('/directorys/simple', 'get', data)
export const simpleTags = data => createAPI('/tags/simple', 'get', data)
export const user = data => createAPI('users/simple', 'get', data)
export const remove = data => createAPI(`/questions/${data}`, 'delete', data)
export const choiceCheck = data => createAPI(`/questions/check/${data.id}`, 'post', data)
export const choicePublish = data => createAPI(`/questions/choice/${data.id}/${data.publishState}`, 'post', data)
export const detail = data => createAPI(`/questions/${data.id}`, 'get', data)
